import cv2
import mediapipe as mp
import sys
mp_face_detection = mp.solutions.face_detection
mp_drawing = mp.solutions.drawing_utils

def faceimg(img):
  IMAGE_FILES = []
  with mp_face_detection.FaceDetection(
          model_selection=1, min_detection_confidence=0.5) as face_detection:  # 各种参数
    
    image = cv2.imread(img)
    
    results = face_detection.process(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
   
    if not results.detections:
      return "无"
    else:
      return "有"


result = faceimg(sys.argv[1])
print(result[0])